import type { Mapping, Option } from "@/components/ProFrom/ProFrom.vue";

import { useGlobalStore } from "@/stores";
const { dictionary } = useGlobalStore();

export const queryFormMap: Mapping[] = [
  { label: "值班人员", type: "input", prop: "name" },
  // {
  //   label: "值班状态",
  //   type: "select",
  //   prop: "onDutyStatus",
  //   options: dictionary.onDutyStatus,
  // },
  // 状态筛选接口有bug
  // { label: "值班日期", type: "date", prop: "time" },
];

export const editFormMap: Mapping[] = [
  {
    label: "值班时间",
    type: "input",
    prop: "date",
  },
  {
    label: "值班电话",
    type: "input",
    prop: "phone",
  },
  {
    label: "值班人员",
    type: "table",
    prop: "watchStaffDtoList",
    columns: [
      {
        label: "姓名",
        prop: "name",
      },
      {
        label: "职位",
        prop: "position",
      },
      {
        label: "联系方式",
        prop: "phone",
      },
      {
        label: "岗位职责",
        prop: "duty",
      },
    ],
  },
  {
    label: "值班状态",
    type: "radio",
    prop: "reponStatus",
  },
];
